package io.plus.user_interface.io.common.protocol;

import io.plus.interactive.AsynchronousSocketChannelContext;
import io.plus.user_interface.io.common.packet.Command;

/**
 * 转换不同协议消息包;
 */
public interface IPacketConverter {
    /**
     * 转化请求包
     */
    PacketImpl converteRequestPacket(byte[] body, Command command, AsynchronousSocketChannelContext asynchronousSocketChannelContext);

    /**
     * 转化响应包
     */
    PacketImpl converteResponsepPacket(byte[] body, Command command, AsynchronousSocketChannelContext asynchronousSocketChannelContext);
}
